<%-- 
    Document   : popuptemplate
    Created on : Jun 4, 2012, 2:47:19 PM
    Author     : ems
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/> 
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/> 
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/jq.date.js"></script>  
        <link rel="stylesheet" type="text/css" href="../css/ui.datepicker.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>


        <script type="text/javascript" language="javascript">
            var open_cur = 0;
            $j = jQuery.noConflict();
            $j(document).ready(function(){
              
                var b = location.pathname;
                $j("input[id$='message']").val(b);
               //validateform("job");
                $j('input#leavedate1,input#leavedate2').datepicker({ dateFormat: 'dd/mm/yy', showOn: 'button', buttonImage: '../images/calenda_icon.gif', buttonImageOnly: true }); 
                
            });
        </script>
        <style type="text/css">
            #ui-datepicker-div
            {
                z-index: 9999999;
            }
            .number{
                text-align: right;
            }
            .stardates{
                float:left;
                width:281px;
                margin-left:11px;
            }
            .stardates label{
                float:left;
                width:92px;
                text-align: right;
                margin-top:4px;
            }
            .stardates input[type="text"] {
                width:100px ;
                float:left;
                margin-left: 4px;
                margin-right: 4px;
            }
            .enddates input[type="text"] {
                width:100px;
                float:left;
                margin-left:0px;
                margin-right: 4px;
            }
            .enddates label{
                float:left;
                width:110px;
                text-align: right;
                margin-top:4px;
                margin-right: 4px;
            }
            .enddates{
                float:left;
            }
            .bg_job_left_right{
                background: #fff;
            }
            .field_blue{
                 background: #fff !important;
            }
            .job_left_right2{
                float:left;
                background-color: #D1E1F1;
                margin-left: -10px;
                width: 700px;
                padding-bottom: 7px;

            }
            
            .job_right{
                float:right;
                width:360px;
            }
        </style>

    </head>


    <body style=" float:left; width:auto; height:auto; margin:0px;">
        <f:view>
            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
            <a4j:form >
                <div class="popup" style="height:296px; width:700px">
                    <div class="popup-header">
                        <div class="title"><h:outputText value="TÀI CHÍNH DỰ KIẾN"/></div>
                    </div>
                    <div class="popup-content" style="height:206px;">
                        <div class="main_content" style="height:208px;">
                            <div class="form_item_content labe_short" style="margin-top: 4px; display: block;">
                                <div class="job_left_right bg_job_left_right">
                                    <!-- start job_left-->
                                    <div class="job_left">
                                        <div class="fields_input">
                                            <label><h:outputText value="Loại giao dịch"/></label>
                                           
                                            <h:selectOneMenu value="#{T800Bean.ft000}">  
                                                <f:selectItems value="#{T800Bean.listCombT100}" />  

                                            </h:selectOneMenu>
                                            
                                        </div>
                                    </div >
                                    <div class="job_right" style="position: absolute; margin-left: 394px;">
                                    
                                        <div class="fields_input job_feild_input">
                                            <label><h:outputText value="Tài khoản"/></label>
                                            
                                            <h:selectOneMenu value="#{T800Bean.fh075}">  
                                                <f:selectItems value="#{T800Bean.listCombH075}" />  
                                            </h:selectOneMenu>
                                        </div>
                                    </div>
                                </div>
                                <!-- start job -left -right-->
                                <div class="job_left_right2">
                                    <!-- start job_left-->
                                    <div class="job_left">
                                        <div class="fields_input">
                                            <label>Tiền tệ:</label>
                                            
                                            <h:selectOneMenu value="#{T800Bean.tv802}">  
                                                <f:selectItem itemValue="VND" itemLabel="VND" />  
                                                <f:selectItem itemValue="USD" itemLabel="USD" />  

                                            </h:selectOneMenu>
                                        </div>
                                        <div class="fields_input" style="border-radius: 4px 4px 4px 4px;">
                                            <label class="longlabel">Giá trị:</label>

                                            <h:inputText value="#{T800Bean.tn801St}" styleClass="numberright" />
                                        </div>
                                        
                                        <div class="fields_input ">
                                            <label>Ngày nhập HD:</label>

                                            <input value="<h:outputText value="#{T800Bean.td803}"><f:convertDateTime pattern="dd/MM/yyyy"/> 
                                                   </h:outputText>" type="text" id="leavedate1" name="leavedate1" class="input_fields required date" />
                                        </div>
                                        <div class="fields_input">
                                            <label>Ngày hiệu lực:</label>
                                            <input value="<h:outputText value="#{T800Bean.td804}"><f:convertDateTime pattern="dd/MM/yyyy"/> 
                                                   </h:outputText>" type="text" id="leavedate2" name="leavedate2" class="" />
                                        </div>
                                    </div>
                                    <!-- end job left-->
                                    <!-- start job right-->
                                    <div class="job_right">

                                        <div class="fields_input">
                                            <label style="width: 170px">Dự án:</label>
                                            <h:selectOneMenu value="#{T800Bean.fb050}">  
                                                <f:selectItems value="#{T800Bean.listCombB050}" />  

                                            </h:selectOneMenu>
                                        </div>
                                        
                                        <div class="fields_input job_feild_input">
                                            <label style="width: 170px;" >Tham chiếu nội bộ:</label>
                                            <h:inputText value="#{T800Bean.tv807}" style="text-align:left;" styleClass="numberright" />
                                        </div>
                                        <div class="fields_input " >
                                            <label class="longlabel" style="width: 170px;" >Tham chiếu bên ngoài:</label>
                                            <h:inputText value="#{T800Bean.tv808}" style="text-align:left;" styleClass="numberright" />
                                        </div>
                                    </div>
                                    <!-- end job right-->
                                </div>
                                <!-- end job left -right-->

                                <div class="alert">

                                </div>
                            </div>

                        </div>

                    </div>
                    <div class="popup-footer">

                        <div class="buttonsave" onclick="jQuery.fancybox.close() "  ><span><h:outputText value="#{locale.close}"/></span></div>
                        <h:commandButton  action="#{T800Bean.updateT800}" value="#{locale.save}" styleClass="buttonsave">

                        </h:commandButton>
                         <h:inputHidden value="#{T800Bean.pt800}" id="pt800"/>
                        <%--
                        <h:inputHidden value="#{l200Controller.pn100}" id="fn100"/>
                        <%--<h:inputHidden value="#{l200Controller.pl100}" id="pn350"/>
                        <h:inputHidden value="#{l200Controller.flagedit}" id="flagedit"/>--%>

                    </div>
                </div>
            </a4j:form>
        </f:view>
    </body>
</html>
